class Wykop:

    def __init__(self):
        self.id = -1;
        self.title = '';
        self.user = -1;
        self.source = '';
        self.added = '';
        self.published = False;
        self.tags = '';
        self.category = '';
        self.link = False;

    def setId(self, id):
        self.id = id

    def setTitle(self, title):
        self.title = title

    def setUser(self, user):
        self.user = user

    def setSource(self, source):
        self.source = source

    def setAdded(self, added):
        self.added = added

    def setPublished(self, published):
        self.published = published

    def setTags(self, tags):
        self.tags = tags

    def setCategory(self, category):
        self.category = category

    def setLink(self, link):
        self.link = link

    def getId(self):
        return self.id

    def getTitle(self):
        return self.title

    def getUser(self):
        return self.user

    def getSource(self):
        return self.source 

    def getAdded(self):
        return self.added 

    def getPublished(self):
        return self.published

    def getTags(self):
        return self.tags

    def getCategory(self):
        return self.category

    def getLink(self):
        return self.link

    def toString(self):
        print self.id
        print self.title
        print self.user
        print self.source
        print self.added
        print self.published
        print self.tags
        print self.category

class User:

    def __init__(self):
        self.nick = '';
        self.registered = False;

    def setNick(self, nick):
        self.nick = nick

    def setRegistered(self, registered):
        self.registered = registered

    def getNick(self):
        return self.nick

    def getRegistered(self):
        return self.registered

    def toString(self):
        print self.nick
        print self.registered
        
class Comment:

    def __init__(self):
        self.user = '';
        self.date = '';
        self.text = '';

    def setUser(self, user):
        self.user = user

    def setDate(self, date):
        self.date = date

    def setText(self, text):
        self.text = text

    def getUser(self):
        return self.user

    def getDate(self):
        return self.date

    def getText(self):
        return self.text

    def toString(self):
        print 'user: ' + self.user
        print 'date: '; print self.date
        print 'text: ' + self.text

class Link:

    def __init__(self):
        self.link = '';
        self.visitors = -1;
        self.autor = False;

    def setLink(self, link):
        self.link = link

    def setVisitors(self, visitors):
        self.visitors = visitors        

    def setAutor(self, autor):
        self.autor = autor
        
    def getLink(self):
        return self.link

    def getVisitors(self):
        return self.visitors       

    def getAutor(self):
        return self.autor

    def equals(self, linkObj):
        return self.link == linkObj.getLink() and self.visitors == linkObj.getVisitors() and self.autor == linkObj.getAutor()

    def toString(self):
        print self.link
        print self.visitors
        print self.autor

class Wykopali:
    
    def __init__(self):
        self.note = '';
        self.user = '';
        self.userRank = False;
        self.reason = False;
        self.date = '';

    def setNote(self, note):
        self.note = note

    def setUser(self, user):
        self.user = user

    def setUserRank(self, userRank):
        self.userRank = userRank

    def setReason(self, reason):
        self.reason = reason

    def setDate(self, date):
        self.date = date

    def getNote(self):
        return self.note

    def getUser(self):
        return self.user
    
    def getUserRank(self):
        return self.userRank

    def getReason(self):
        return self.reason

    def getDate(self):
        return self.date

    def toString(self):
        print self.note
        print self.user 
        print self.userRank
        print self.reason 
        print self.date
        

